<!DOCTYPE html>
<html>
<head>
<title>GLaDOS-auto-signin-coding-picture-bed.md</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

<style>
/* https://github.com/microsoft/vscode/blob/master/extensions/markdown-language-features/media/markdown.css */
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

body {
	font-family: var(--vscode-markdown-font-family, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif);
	font-size: var(--vscode-markdown-font-size, 14px);
	padding: 0 26px;
	line-height: var(--vscode-markdown-line-height, 22px);
	word-wrap: break-word;
}

#code-csp-warning {
	position: fixed;
	top: 0;
	right: 0;
	color: white;
	margin: 16px;
	text-align: center;
	font-size: 12px;
	font-family: sans-serif;
	background-color:#444444;
	cursor: pointer;
	padding: 6px;
	box-shadow: 1px 1px 1px rgba(0,0,0,.25);
}

#code-csp-warning:hover {
	text-decoration: none;
	background-color:#007acc;
	box-shadow: 2px 2px 2px rgba(0,0,0,.25);
}

body.scrollBeyondLastLine {
	margin-bottom: calc(100vh - 22px);
}

body.showEditorSelection .code-line {
	position: relative;
}

body.showEditorSelection .code-active-line:before,
body.showEditorSelection .code-line:hover:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: -12px;
	height: 100%;
}

body.showEditorSelection li.code-active-line:before,
body.showEditorSelection li.code-line:hover:before {
	left: -30px;
}

.vscode-light.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(0, 0, 0, 0.15);
}

.vscode-light.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(0, 0, 0, 0.40);
}

.vscode-light.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

.vscode-dark.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.vscode-dark.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(255, 255, 255, 0.60);
}

.vscode-dark.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

.vscode-high-contrast.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(255, 160, 0, 0.7);
}

.vscode-high-contrast.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(255, 160, 0, 1);
}

.vscode-high-contrast.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

img {
	max-width: 100%;
	max-height: 100%;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 1px solid -webkit-focus-ring-color;
	outline-offset: -1px;
}

hr {
	border: 0;
	height: 2px;
	border-bottom: 2px solid;
}

h1 {
	padding-bottom: 0.3em;
	line-height: 1.2;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

h1, h2, h3 {
	font-weight: normal;
}

table {
	border-collapse: collapse;
}

table > thead > tr > th {
	text-align: left;
	border-bottom: 1px solid;
}

table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
	padding: 5px 10px;
}

table > tbody > tr + tr > td {
	border-top: 1px solid;
}

blockquote {
	margin: 0 7px 0 5px;
	padding: 0 16px 0 10px;
	border-left-width: 5px;
	border-left-style: solid;
}

code {
	font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
	font-size: 1em;
	line-height: 1.357em;
}

body.wordWrap pre {
	white-space: pre-wrap;
}

pre:not(.hljs),
pre.hljs code > div {
	padding: 16px;
	border-radius: 3px;
	overflow: auto;
}

pre code {
	color: var(--vscode-editor-foreground);
	tab-size: 4;
}

/** Theming */

.vscode-light pre {
	background-color: rgba(220, 220, 220, 0.4);
}

.vscode-dark pre {
	background-color: rgba(10, 10, 10, 0.4);
}

.vscode-high-contrast pre {
	background-color: rgb(0, 0, 0);
}

.vscode-high-contrast h1 {
	border-color: rgb(0, 0, 0);
}

.vscode-light table > thead > tr > th {
	border-color: rgba(0, 0, 0, 0.69);
}

.vscode-dark table > thead > tr > th {
	border-color: rgba(255, 255, 255, 0.69);
}

.vscode-light h1,
.vscode-light hr,
.vscode-light table > tbody > tr + tr > td {
	border-color: rgba(0, 0, 0, 0.18);
}

.vscode-dark h1,
.vscode-dark hr,
.vscode-dark table > tbody > tr + tr > td {
	border-color: rgba(255, 255, 255, 0.18);
}

</style>

<style>
/* Tomorrow Theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */

/* Tomorrow Comment */
.hljs-comment,
.hljs-quote {
	color: #8e908c;
}

/* Tomorrow Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
	color: #c82829;
}

/* Tomorrow Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
	color: #f5871f;
}

/* Tomorrow Yellow */
.hljs-attribute {
	color: #eab700;
}

/* Tomorrow Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
	color: #718c00;
}

/* Tomorrow Blue */
.hljs-title,
.hljs-section {
	color: #4271ae;
}

/* Tomorrow Purple */
.hljs-keyword,
.hljs-selector-tag {
	color: #8959a8;
}

.hljs {
	display: block;
	overflow-x: auto;
	color: #4d4d4c;
	padding: 0.5em;
}

.hljs-emphasis {
	font-style: italic;
}

.hljs-strong {
	font-weight: bold;
}
</style>

<style>
/*
 * Markdown PDF CSS
 */

 body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "Meiryo";
	padding: 0 12px;
}

pre {
	background-color: #f8f8f8;
	border: 1px solid #cccccc;
	border-radius: 3px;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

pre:not(.hljs) {
	padding: 23px;
	line-height: 19px;
}

blockquote {
	background: rgba(127, 127, 127, 0.1);
	border-color: rgba(0, 122, 204, 0.5);
}

.emoji {
	height: 1.4em;
}

code {
	font-size: 14px;
	line-height: 19px;
}

/* for inline code */
:not(pre):not(.hljs) > code {
	color: #C9AE75; /* Change the old color so it seems less like an error */
	font-size: inherit;
}

/* Page Break : use <div class="page"/> to insert page break
-------------------------------------------------------- */
.page {
	page-break-after: always;
}

</style>

<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
</head>
<body>
  <script>
    mermaid.initialize({
      startOnLoad: true,
      theme: document.body.classList.contains('vscode-dark') || document.body.classList.contains('vscode-high-contrast')
          ? 'dark'
          : 'default'
    });
  </script>
<h1 id="glados-%E8%87%AA%E5%8A%A8%E7%AD%BE%E5%88%B0">GLaDOS 自动签到</h1>
<blockquote>
<p>本文原链接：https://blog.csdn.net/weixin_37551036/article/details/115415358</p>
<p>YuSoLi: 我用的自动签到脚本和原作者使用的不是同一个。原作者的自动签到脚本有时会导致签到失败，因此不建议用原作者的那个。在此文章中，我已经把自动签到脚本的链接替换为我自己使用的那一个。因此只参考我这篇就行。</p>
<p>请低调使用 <img class="emoji" alt="smiley" src="" /></p>
</blockquote>
<h2 id="%E7%AE%80%E4%BB%8B">简介</h2>
<p>首次输入邀请码注册免费获得 3 天，绑定教育邮箱获得 360 天，每天签到获得 1 天。本文教大家如何通过脚本自动签到，并自动推送结果到微信上。每步都配了截图，小白也能做。</p>
<h2 id="%E6%B3%A8%E5%86%8C-glados">注册 GLaDOS</h2>
<p>注册地址：</p>
<p>在 https://github.com/glados-network/GLaDOS 实时更新</p>
<p>如果你有教育邮箱，可以拉到页面底部申请教育计划免费获得 360 天时长</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-10-42.png" alt="1"></p>
<h2 id="fork-%E9%A1%B9%E7%9B%AE%E5%88%B0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BB%93%E5%BA%93">Fork 项目到自己的仓库</h2>
<blockquote>
<p>YuSoLi: 这个自动签到项目说每天上午9:30签到，但是我实测是上午10:30</p>
</blockquote>
<ol>
<li>
<p>打开 https://github.com/DullSword/GLaDOS-CheckIn</p>
</li>
<li>
<p>在页面右上角点击 fork</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-11-30.png" alt="1"></p>
</li>
</ol>
<h2 id="%E9%85%8D%E7%BD%AE%E8%B4%A6%E6%88%B7%E4%BF%A1%E6%81%AF">配置账户信息</h2>
<ol>
<li>
<p>添加 action cecrets</p>
<p>如图所示点击 settings-secrets-new repository secret</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-11-55.png" alt="1"></p>
</li>
<li>
<p>添加自己账户的信息</p>
<p>这里需要分别添加三次：</p>
<table>
<thead>
<tr>
<th style="text-align:center">Name</th>
<th style="text-align:center">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">SERVE</td>
<td style="text-align:center">yes</td>
</tr>
<tr>
<td style="text-align:center">COOKIE</td>
<td style="text-align:center">你自己的 cookie（下一步会说明）</td>
</tr>
<tr>
<td style="text-align:center">SCKEY</td>
<td style="text-align:center">你自己的 sckey（下一步会说明）</td>
</tr>
</tbody>
</table>
<p>接下来会详细介绍如何获取 COOKIE 和 SCKEY</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-13-34.png" alt="1"></p>
</li>
<li>
<p>获取 COOKIE</p>
<p>登录 glados，按键盘上的 <code>F12</code> 打开开发者工具</p>
<p>进入我的账户，刷新页面</p>
<p>如图所示找到 cookie，把 cookie： 后面的几行都复制下来，填入上一步对应的 value 中</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-14-12.png" alt="1"></p>
</li>
<li>
<p>获取 SCKEY</p>
<p>这是在 server 酱中获取的，用于绑定微信，给你推送签到后的结果</p>
<blockquote>
<p>YuSoLi: 由于微信在2021年4月的调整，下面这种公众号推送的方式已经被微信禁用了。目前可用的是企业微信推送的方式。</p>
<p>但是下文提到的<code>Server酱</code>如果使用企业微信，必须用<code>Server酱 Turbo版</code>。而此版本是收费的</p>
<p><code>虾推啥</code>官网：http://www.xtuis.cn/</p>
<p><code>虾推啥</code>同样提供了企业微信推送，并且是免费的。推荐这个。官网有教程，与server酱差不多。使用的时候需要改一下自动签到脚本中文件<code>checkin.js</code>链接的api地址。这个地址在<code>虾推啥</code>的官网里可以找到，或者直接参考<a href="https://github.com/ysl2/GLaDOS-CheckIn">我的设置</a></p>
</blockquote>
<p>server 酱地址：http://sc.ftqq.com/3.version</p>
<ul>
<li>
<p>用 github 账号登入</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-15-35.png" alt="1"></p>
</li>
<li>
<p>扫码绑定微信</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-15-48.png" alt="1"></p>
</li>
<li>
<p>复制 SCKEY</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-16-06.png" alt="1"></p>
</li>
</ul>
<p>三个 secret 添加好后，就应该是这个样子：</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-16-24.png" alt="1"></p>
</li>
</ol>
<h2 id="%E5%BC%80%E5%90%AF-action">开启 Action</h2>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-16-41.png" alt="1"></p>
<p>选择 enable workflow</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-16-51.png" alt="1"></p>
<h2 id="%E6%8F%90%E4%BA%A4">提交</h2>
<blockquote>
<p>YuSoLi：</p>
<p>这部分不要参考下文的“改<code>README.md</code>”，改了也没效果。只需要star一下你自己fork的仓库，就会开始action了</p>
</blockquote>
<p>此时已经开启了 action，代码中写的是每天凌晨 0 点左右或者每次提交代码时会触发签到行为。为了验证是否成功，我们随便修改一下代码并提交：
点这个 readme.md（避免修改了不该修改的代码）</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-17-05.png" alt="1"></p>
<p>点击这个笔进行编辑</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-17-15.png" alt="1"></p>
<p>随便写点什么，修改这个文件是不会影响到代码的</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-17-25.png" alt="1"></p>
<p>提交更改</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-17-38.png" alt="1"></p>
<h2 id="%E9%AA%8C%E8%AF%81%E7%BB%93%E6%9E%9C">验证结果</h2>
<p>点开 action，发现正在 update，当图标变成绿色 √ 的时候就执行完毕了</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-17-56.png" alt="1"></p>
<p>打开微信看是否收到通知：</p>
<p><img src="https://myheap.coding.net/p/public-picture-bed-01/d/public-picture-bed-01/git/raw/master/2021-04-10-21-18-07.png" alt="1"></p>
<p>自此就成功了，每天凌晨 12 点多都会自动签到的，不过 cookie 过段时间会失效，到时登录 github 手动更改一下 cookie 值就行。</p>
<h2 id="%E6%84%9F%E6%83%B3">感想</h2>
<ol>
<li>白嫖真香</li>
<li>第一次使用 github 的 action，还挺好用</li>
<li>关于 server 酱：由于微信升级的原因到时可能会失效，具体可以看一下他的文档如何使用企业微信推送通知，这里不赘述了</li>
</ol>

</body>
</html>
